package com.ossjk.oa.finance.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.ossjk.core.base.entity.BaseEntity;

/**
 * <p>
 * 报销
 * </p>
 *
 * @author chair
 * @since 2019-02-15
 */
public class Reimburse extends BaseEntity<Reimburse> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId("id")
    private String id;
    /**
     * 名称
     */
    @TableField("name")
    private String name;
    /**
     * 原因
     */
    @TableField("reason")
    private String reason;
    /**
     * 开始时间
     */
    @TableField("sttm")
	@JSONField(format = "yyyy-MM-dd")
    private Date sttm;
    /**
     * 结束时间
     */
    @TableField("edtm")
	@JSONField(format = "yyyy-MM-dd")
    private Date edtm;
    /**
     * 金额
     */
    @TableField("amount")
    private BigDecimal amount;
    /**
     * 备注
     */
    @TableField("remarks")
    private String remarks;
    /**
     * 审核人id
     */
    @TableField("rwid")
    private String rwid;
    
    @TableField("attacid1")
    private String     attacid1;
    @TableField("attacid2")
    private String     attacid2;
    /**
     * 审核时间
     */
    @TableField("rwtm")
	@JSONField(format = "yyyy-MM-dd")
    private Date rwtm;
    /**
     * 审核状态：1-待审核、2-通过、3-不通过
     */
    @TableField("rwst")
    private BigDecimal rwst;
    /**
     * 审核原因
     */
    @TableField("rwrs")
    private String rwrs;

    /**
     * 审核时间
     */
    @TableField("rwtm2")
	@JSONField(format = "yyyy-MM-dd")
    private Date rwtm2;
    /**
     * 审核原因
     */
    @TableField("rwrs2")
    private String rwrs2;
    /**
     * 审核人id
     */
    @TableField("rwid2")
    private String rwid2;
    
    
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Date getSttm() {
        return sttm;
    }

    public void setSttm(Date sttm) {
        this.sttm = sttm;
    }

    public Date getEdtm() {
        return edtm;
    }

    public void setEdtm(Date edtm) {
        this.edtm = edtm;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getRwid() {
        return rwid;
    }

    public void setRwid(String rwid) {
        this.rwid = rwid;
    }

    public Date getRwtm() {
        return rwtm;
    }

    public void setRwtm(Date rwtm) {
        this.rwtm = rwtm;
    }

    public BigDecimal getRwst() {
        return rwst;
    }

    public void setRwst(BigDecimal rwst) {
        this.rwst = rwst;
    }

    public String getRwrs() {
        return rwrs;
    }

    public void setRwrs(String rwrs) {
        this.rwrs = rwrs;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public String getAttacid1() {
		return attacid1;
	}

	public void setAttacid1(String attacid1) {
		this.attacid1 = attacid1;
	}

	public String getAttacid2() {
		return attacid2;
	}

	public void setAttacid2(String attacid2) {
		this.attacid2 = attacid2;
	}

	public Date getRwtm2() {
		return rwtm2;
	}

	public void setRwtm2(Date rwtm2) {
		this.rwtm2 = rwtm2;
	}

	public String getRwrs2() {
		return rwrs2;
	}

	public void setRwrs2(String rwrs2) {
		this.rwrs2 = rwrs2;
	}

	public String getRwid2() {
		return rwid2;
	}

	public void setRwid2(String rwid2) {
		this.rwid2 = rwid2;
	}

	@Override
    public String toString() {
        return "Reimburse{" +
        ", id=" + id +
        ", name=" + name +
        ", reason=" + reason +
        ", sttm=" + sttm +
        ", edtm=" + edtm +
        ", amount=" + amount +
        ", remarks=" + remarks +
        ", rwid=" + rwid +
        ", rwtm=" + rwtm +
        ", rwst=" + rwst +
        ", rwrs=" + rwrs +
        "}";
    }
}
